package com.anrongtec.zcpt.tab04;

import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.widget.TextView;

import com.anrongtec.zcpt.R;
import com.anrongtec.zcpt.base.BaseActivity;
import com.anrongtec.zcpt.openapi.util.Util;

public class AboutActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        TextView versionTv = (TextView) findViewById(R.id.version_tv);
        String appName = getString(R.string.app_name);
        String versionName = Util.getVersionName(this);
        versionTv.setText(appName + "版本：" + versionName);
    }

    @Override
    protected void onCreateCustomToolBar(Toolbar toolbar) {
        super.onCreateCustomToolBar(toolbar);
        toolbar.setTitle(R.string.title_activity_about);
    }
}
